package com.xuln.junit.framework.spring.sayhello;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

//@Component  创建一个Bean
@Component
public class SayHelloService {
	// @Resource 注入一个Bean
	@Resource
	private SayHelloDao sayHelloDao;

	public void sayHello() {
		sayHelloDao.sayHello();
	}

}
